/* Check JER_Matrix::CreateIdentity(). 
   reed_sol... already checked. */
#include <stdio.h>
#include "jerasure.h"
#include "reed_sol.h"

int main( int argc, char** argv )
{
	int *old_bitmatrix;
	int *inverse_matrix;
	int i, j;
	int m = atoi( argv[1] );
	int k = atoi( argv[2] );
	int w = atoi( argv[3] );
	
	old_bitmatrix = reed_sol_extended_vandermonde_matrix( k, k, w );
	for( i = 0; i < k; i++ )
		for( j = 0; j < k; j++ )
				old_bitmatrix[i*k+j] = ( i == j ) ? 1 : 0;

	if( old_bitmatrix != NULL )
		jerasure_print_matrix( old_bitmatrix, k, k, w );

	return 0;
}
